package field_method_10;

public class FruitTest {
    public static void main(String[] args) {
        orange fruit=new orange("橘子", "浙江", 7);
        fruit.removePeel(fruit);
        fruit.juicing();
        System.out.println(fruit.toString());


        Fruit fruit1= new Lemon("柠檬","云南",6);
        fruit.removePeel(fruit1);
        fruit1.juicing();
        System.out.println(fruit1.toString());

        Cantaloupe fruit2= new Cantaloupe("哈密瓜","新疆",8);
        fruit2.removePeel(fruit2);
        fruit2.juicing();
        System.out.println(fruit2.toString());
    }
}
